package com.design.builder;

/**
 * @author leali
 * @title: ActorController
 * @projectName design
 * @description: 游戏角色创建控制器：指挥者
 * @date 2022/1/2 21:55
 */
public class ActorController {
    /**
     * 逐步构建复杂产品对象
     *
     * @param ab
     * @return
     */
    public Actor construct(ActorBuilder ab) {
        ab.buildType();
        ab.buildSex();
        ab.buildFace();
        ab.buildCostume();
        ab.buildHairstyle();
        return ab.createActor();
    }
}
